package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Schema(name ="订单")
public class MemberOrder    extends Entity {
    @Schema(description = "订单id")
    private String id;
    @Schema(description = "骑行人id")
    private String memberId;
    @Schema(description = "骑行人名称")
    private  String memberName;
    @Schema(description = "骑行人电话")
    private  String memberTelphone;
    @Schema(description = "自行车编号")
    private String bikeId;
    @Schema(description = "自行车名称")
    private  String bikeName;
    @Schema(description = "开始位置")
    private String startPoint;
    @Schema(description = "结束位置")
    private String endPoint;
    @Schema(description = "计价方式 0 按小时 1 按骑行卡 3 不支付[工作人员扫码]")
    private Integer priceType;
    @Schema(description = "订单状态 0 进行中 1已完成 2 已报修 3 押金已支付 4 待支付 5 已支付 6 支付失败 7 押金支付失敗 8 押金待支付")
    private Integer orderState;
    @Schema(description = "支付状态  0 未支付  1 已支付 2 支付失败 3 押金待支付")
    private Integer payState;
    @Schema(description = "支付状态")
    private String stateName;
    @Schema(description = "订单金额")
    private BigDecimal payMoney;
    @Schema(description = "骑行金额")
    private BigDecimal cyclingMoney;
    @Schema(description = "保险金额")
    private BigDecimal insureMoney;
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    @Schema(description = "骑行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String cyclingTime;
    @Schema(description = "历时")
    private String duration;
    @Schema(description = "历时 时分秒")
    private List<Integer> times;

}